package net.bac.sbe.web.sonar.client.view;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ApplicationView implements Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = -4009454836208155728L;
	String name;
	String sonarKey;
	String regularExpression;
	List<ModuleView> modules = new ArrayList<ModuleView>(1);

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSonarKey() {
		return sonarKey;
	}
	public void setSonarKey(String sonarKey) {
		this.sonarKey = sonarKey;
	}
	public String getRegularExpression() {
		return regularExpression;
	}
	public void setRegularExpression(String regularExpression) {
		this.regularExpression = regularExpression;
	}
	public List<ModuleView> getModules() {
		return modules;
	}
	public void setModules(List<ModuleView> modules) {
		this.modules = modules;
	}

	public void addModule(ModuleView view){
		this.modules.add(view);
	}
	@Override
	public String toString() {
		return "ApplicationView [name=" + name + ", sonarKey=" + sonarKey
				+ ", regularExpression=" + regularExpression + ", modules="
				+ modules + "]";
	}





}
